// 导入 axios
import axios from "axios";

const instance = axios.create({
  baseURL: "http://toutiao-app.itheima.net",
});

const userLogin = ({ mobile, code }) => {
  return instance({
    url: "/v1_0/authorizations",
    method: "post",
    data: {
      mobile,
      code,
    },
  });
};

export { userLogin };
